<template>
	<view class="body">
		<view class="box">
			<view class="text">订单支付成功</view>
			<view class="price">支付金额：{{totalprice}}元</view>
		</view>

		<view class="back">
			<navigator url="/pages/my/my" open-type="switchTab"> 
				<view class="btn">个人中心</view>
			</navigator>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				totalprice: ''
			};
		},
		onLoad(options) {
			this.totalprice = options.price
		}
	}
</script>

<style lang="scss" scoped>
	.body {
		height: 100vh;
		background-color: #F1ECE7;

		.box {
			width: 100%;
			text-align: center;
			padding-top: 200px;
			.text {
				width: 100%;
				font-size: 24px;
				
			}

			.price {
				width: 100%;
				font-size: 16px;
				padding-top: 10px;
			}
		}

		.back {
			position: absolute;
			bottom: 40px;
			left: 0;
			width: 100%;
			display: flex;
			justify-content: center;
			align-items: center;
			.btn{
				height: 35px;
				line-height: 35px;
				font-size: 17px;
				border-radius: 5px;
				border: 1px solid #354e44;
				padding: 0 25px;
				color: #354e44;
			}
		}
	}
</style>
